<script type="text/javascript">
function bind() {
	var renren_bind = document.getElementById('renren_bind');
	renren_bind.submit();
}
</script>
<!--{if $_G[uid]}-->
    <!--{if !$isbind['bing']}-->
        <form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp" id="renren_bind" >
            <table cellspacing="0" cellpadding="0" class="tfm">
                <caption>
                    <h2 class="wx">{lang renren:bind_id}</h2>
                    <p>{lang renren:bind_tip1}</p>
                </caption>
                <tr>
                    <td>
                        <div class="c">
                            <input type="hidden" name="formhash" value="{FORMHASH}" />
                            <input type="hidden" name="renren_bind" value="1" />
                            <xn:login-button onlogin="bind();" ></xn:login-button>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
    
    
    <!--{else}-->
     <div class="bm bw0">
        <ul class="tb cl">
            <li <!--{if $_G['gp_rr']==unbind|| $_G['gp_rr']==''}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=unbind">{lang renren:rr_unbind}</a></li>
            <li <!--{if $_G['gp_rr']==upava}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=upava">{lang renren:bind_avsync}</a></li>
            <li <!--{if $_G['gp_rr']==setper}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=setper">{lang renren:bind_conf}</a></li>
            <li <!--{if $_G['gp_rr']==rrfriend}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=rrfriend">{lang renren:bind_friend}</a></li>
             <li <!--{if $_G['gp_rr']==invitef}-->class="a"<!--{/if}-->><a href="home.php?mod=spacecp&ac=plugin&id=renren:spacecp&rr=invitef">{lang renren:bind_infriend}</a></li>
        </ul>
		<!--{if $_G['gp_rr']=='unbind'||$_G['gp_rr']==''}-->
			<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp">
                <table cellspacing="0" cellpadding="0" class="tfm">
                    <caption>
                        <h2 class="wx">{lang renren:rr_unbind}</h2>
                        <p>{lang renren:bind_tip2}</p>
                    </caption>
                    <tr>
                        <td>
                            <div class="c">
                            <h3>{lang renren:rr_id}:{$rr_name}&nbsp;&nbsp;<img src="renren/image/connect_renren.png">&nbsp;&nbsp;{lang renren:dz_id}:{$dz_name}</h3>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="c">
                                <input type="hidden" name="formhash" value="{FORMHASH}" />
                                <input type="submit" name="renren_unbind" value="{lang renren:rr_unbind}" />
                             
                            </div>
                        </td>
                    </tr>
                </table>
            </form>	
		<!--{elseif $_G['gp_rr']=='upava'}-->
            <form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp">
                <table cellspacing="0" cellpadding="0" class="tfm">
                <!--{if $_G[renren]}-->
                    <caption>
                    <h2 class="wx">{lang renren:rr_av}</h2>
                    <p>{lang renren:avsync_tip1}</p>
                    </caption>
                    <tr>
                        <td>
                        	<img src="$headurl" />
                        </td>
                    </tr>
                </table>
                <input type="hidden" name="formhash" value="{FORMHASH}" />
            	<input type="submit" value="{lang renren:bind_avsync}" name="renren_avatar_submit"/>	
                <!--{else}-->
                    <h2 class="wx">{lang renren:avsync_tip2}</h2>
                    <xn:login-button onlogin="location.reload()"></xn:login-button>
                    </table>
                <!--{/if}-->
            </form>
		<!--{elseif $_G['gp_rr'] == 'setper'}-->
			<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=renren:spacecp">
             	<input type="hidden" name="formhash" value="{FORMHASH}" />
                {lang renren:rr_homeconf}<br />
    <p>
                  <label>
                    <input type="radio" name="RadioGroup1" value="0"<!--{if $per == 0}--> checked="checked" <!--{/if}-->/>
                    {lang renren:rr_homen}</label>
                  <br />
                  <label>
                    <input type="radio" name="RadioGroup1" value="1"<!--{if $per == 1}--> checked="checked"<!--{/if}-->/>
                    {lang renren:rr_homef}</label>
                   <label>
                   <br />
                    <input type="radio" name="RadioGroup1" value="2"<!--{if $per == 2}--> checked="checked"<!--{/if}-->/>
                    {lang renren:rr_homea}</label>
                  <br /><br />
                  <!--{if $iffeed}-->
                 {lang renren:rr_feedconf}<br />
                 {lang renren:rr_feedtip1}<br />
                 	<input name="feednew" type="checkbox" value="1"<!--{if $feed_s[0]}-->  checked <!--{/if}--> />{lang renren:rr_feedthread}<br />
                    <input name="feedre" type="checkbox" value="1"<!--{if $feed_s[1]}-->  checked <!--{/if}-->/>{lang renren:rr_feedreply}<br />
                   <!--{/if}--> 
                  <input type="submit" name="renren_setper" value="{lang renren:rr_submit}" />
    </p>
    			
        	 </form>
        <!--{elseif $_G['gp_rr'] == 'rrfriend'}-->
        	{lang renren:rr_friend}
    		<xn:friendpile show-faces="connected" face-size="medium" max-rows="2" face-space="5" width="615"></xn:friendpile>
        <!--{elseif $_G['gp_rr'] == 'invitef'}-->
	<xn:serverxnml style="width:810px;"> 
		<script type="text/xnml"> 
			<xn:request-form content="{lang renren:rr_invitedisc}&lt;xn:req-choice url=&quot;$_G['siteurl'] &quot; label=&quot;{lang renren:rr_accinvite}&quot;&gt;" action="$_G['siteurl']"> <xn:multi-friend-selector-x actiontext="{lang renren:rr_invite}" max="1000" mode="all"/> </xn:request-form>
		</script> 
	</xn:serverxnml>
		<!--{/if}-->
        
	</div>	
    <!--{/if}-->
<!--{/if}-->